package com.longshihan.carservice.controller;

import com.longshihan.carservice.utils.MapCache;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import javax.servlet.http.HttpServletRequest;
import java.util.UUID;

/**
 * @author longhe
 * @time
 */
public abstract class BaseController {
    protected MapCache cache = MapCache.single();
    public static final Logger logger = LogManager.getLogger(AuthController.class);

    public Integer getUid(HttpServletRequest request){
        return UUID.randomUUID().hashCode();
    }
}
